import requests
class LoginApi:
    def login(self,req_data):
        resp = requests.post(url="http://ihrm2-test.itheima.net/api/sys/login",
                             json=req_data)
        return resp




if __name__=="__main__":
    A = LoginApi()
    resp_data = {"mobile": "13800000002", "password": "123456"}
    resp = A.login(resp_data)
    print(resp.json())